package Hwork;
class Rectangle{
    private double width =1;
    private double height =1;
    public double getWidth() {
        return width;
    }
    public double getHeight() {
        return height;
    }
    public double getArea(double width, double height){
        return (width*height);
    }
    public double getPrimeter(double width,double height){
        return width+height;
    }
}
public class work {
    public static void main(String[] args) {
        Rectangle one=new Rectangle();
        System.out.println(one.getArea(4.0,40.0));
        System.out.println(one.getPrimeter(4.0,40.0));
        Rectangle two=new Rectangle();
        System.out.println(two.getArea(3.5,35.9));
        System.out.println(two.getPrimeter(3.5,35.9));
    }
}
